import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/order-list',
    component: () => import('../views/OrderList.vue')
  },
  {
    path: '/settings',
    component: () => import('../views/Settings.vue')
  },
  {
    path: '/api-doc',
    component: () => import('../views/ApiDoc.vue')
  },
  {
    path: '/booking',
    component: () => import('../views/Booking.vue')
  },
  {
    path: '/order-details',
    component: () => import('../views/OrderDetails.vue')
  },
  {
    path: '/login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/register',
    component: () => import('../views/Register.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
